package com.reliable.api.dto.chatmessage;

import java.util.List;

/**
 * 聊天消息分页查询结果DTO
 */
public class ChatMessagePageDTO {
    /**
     * 聊天消息列表
     */
    private List<ChatMessageDTO> records;
    
    /**
     * 总记录数
     */
    private Long total;
    
    /**
     * 当前页码
     */
    private Integer pageNum;
    
    /**
     * 每页大小
     */
    private Integer pageSize;
    
    public ChatMessagePageDTO() {
    }
    
    public ChatMessagePageDTO(List<ChatMessageDTO> records, Long total, Integer pageNum, Integer pageSize) {
        this.records = records;
        this.total = total;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }
    
    public List<ChatMessageDTO> getRecords() {
        return records;
    }
    
    public void setRecords(List<ChatMessageDTO> records) {
        this.records = records;
    }
    
    public Long getTotal() {
        return total;
    }
    
    public void setTotal(Long total) {
        this.total = total;
    }
    
    public Integer getPageNum() {
        return pageNum;
    }
    
    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }
    
    public Integer getPageSize() {
        return pageSize;
    }
    
    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}